<?php

declare (strict_types = 1);

namespace app\wms\model;


class Orders extends QnModel
{

    protected $pk = 'orderId';
    public function getOrder(array $params)
    {
        $where = [];
        !empty($params['orderId']) && $where[] = ['orderId', '=', $params['orderId']];
        return $this->where($where)->order(['sort' => 'asc', 'create_time' => 'asc'])->find()->toArray();
    }
}
